package com.zhuiyun.project.api.complaint.mapper;

import com.zhuiyun.project.api.complaint.entity.ComplaidFile;
import com.zhuiyun.project.common.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

@Mapper
public interface ComplaidFileMapper extends BaseMapper<ComplaidFile> {
    @Select("<script>" +
            "select * from complaid_file c where c.complain_id = #{id} and c.del_flag = 0"+
            "</script>")
    List<ComplaidFile> selectFile(@Param("id") int id);
}
